# -*- coding: UTF-8 -*-

import requests
from util.console import *
from bs4 import BeautifulSoup

from selenium import webdriver

import pandas
import pika

import PyPDF2

from pyquery import PyQuery as jquery

import fpdf

r = requests.get('https://www.sina.com.cn/')
p(r)
p(dir(r))
# p(r.content)

soup = BeautifulSoup(r.text,'lxml')
p(soup.title.string)

query = jquery(url='https://www.baidu.com/',encoding='utf-8')
# p(dir(html))
p(query('title')) # $('title')
p(query('a')) # $('a')